<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 老猫 <thinkcmf@126.com>
// +----------------------------------------------------------------------
namespace app\portal\controller;

use cmf\controller\HomeBaseController;
use think\config;
use think\Db;
class IndexController extends HomeBaseController
{
    public function index()
    {
//        $mg = Db::connect("database_mg");
//        dump(get_class_methods($mg));
//        dump($mg->insert(['a'=>12]));
//        die;
        $mysql = Db::connect('database_mg');
        dump($mysql->name('students')->find());
        exit();
        return $this->fetch(':index');
    }
}
